<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import {loadInitStoreData} from "@/api/rva/init";
import  {getSysTitle,getSysLogo} from "@/utils/ruoyi"

export default {
  name: 'App',
  created() {
    loadInitStoreData();
  },
  metaInfo() {
    return {
      title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
      titleTemplate: title => {
        let sysName=getSysTitle()
        return title ? `${title} - ${sysName}` : sysName
      },
      link: [{                 // set link
        rel: 'icon',
        href: getSysLogo()
      }]

    }
  }
}
</script>
